package com.tnr.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Employee {
	
	private Integer e_id;
	private String e_name;
	private Date e_date;
	private Double e_sal;
	
	public Integer getE_id() {
		return e_id;
	}
	public void setE_id(Integer e_id) {
		this.e_id = e_id;
	}
	public String getE_name() {
		return e_name;
	}
	public void setE_name(String e_name) {
		this.e_name = e_name;
	}
	public Date getE_date() {
		return e_date;
	}
	public void setE_date(Date e_date) {
		this.e_date = e_date;
	}
	public Double getE_sal() {
		return e_sal;
	}
	public void setE_sal(Double e_sal) {
		this.e_sal = e_sal;
	}
	
	public String getE_date_str() {
		if(this.e_date!=null) {
			return new SimpleDateFormat("yyyy-MM-dd").format(e_date);
		}
		return null;
	}
	

}
